package com.virtualightning.app

import android.Manifest
import android.os.Bundle
import androidx.core.app.ActivityCompat
import com.virtualightning.app.ui.main.MainFragment
import com.virtualightning.app.ui.main.SimpleListFragment
import com.virtualightning.mvvm.Initializer
import com.virtualightning.mvvm.base.BaseSpawnUI

class MainActivity : BaseSpawnUI() {
    override fun onRealCreated(savedInstanceState: Bundle?) {
        Initializer.init(application)
        ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE), 1000)
        setContentView(R.layout.main_activity)
        supportFragmentManager.beginTransaction()
            .add(R.id.container, MainFragment.newInstance())
            .commitNow()
    }

}
